package com.erp.mapper;

import com.erp.entity.Breakage;
import com.erp.entity.vo.BreakageSituationVO;
import com.erp.entity.vo.BreakageVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Mapper
public interface BreakageMapper{

    List<BreakageVO> getAll();

    int add(Breakage breakage);

    int delete(Integer id);

    int update(Breakage breakage);
    
    List<BreakageSituationVO> getBreakageSituation(String start, String end);
}
